<style>
    .report-table td {
        padding: 8px 5px;
    }
</style>
<? foreach ($vest as $row){ 
        $id = $row->id; 
        $status = $row->status;  
        $naziv = $row->title;  
        $text = $row->text;  
} ?>
<? if($status==2){?>
    <style> 
        #minireport #mheader .mini-meta span{
            color: #AAAAAA;
            background: url(<?=base_url()?>assets/img/backgrounds/item-closed.png) no-repeat scroll 0 5px transparent;
        }
    </style>  
    <?};?>
<div id="mheader">
    <h2><?=$naziv; ?></h2>
    <div id="mini-meta-container">
        <div class="mini-meta" style="width: 190px;">
            <small>Status</small>
            <div id="drop-hover">
                <span id="main-status" >
                    <? if($status==1)echo 'Aktivna';?>
                    <? if($status==2)echo 'Zatvorena';?>
                </span>
            </div>
        </div>
    </div>
    <ul class="navcontrol nopadding right mini-meta-tabs">
        <li><a class="link-edit side-left side-right" href="<?=base_url()?>vesti/uredi_vesti/index/TRUE/<?=$id; ?>">Uredi vijest</a></li>
    </ul>
    <p class="clear"></p>
</div>
<div id="mini-report-body">
    <div style="width: 400px;" class="report-box">
        <div class="head">
            <h4>Tekst vijesti</h4>
            <p class="clear"></p>
        </div>
        <div style="height: 230px;" class="box">
            <div class="inner">
                    <div class="no-votes" style="padding: 30px 20px 0; height: 190px; overflow: auto;">
                    <?=$text;?>
                    </div>
                    <div class="clear"></div>
            </div>
        </div>
    </div>
    <div class="clear"></div>
    <div>
        <h2 style="margin-top: 20px;">Opcije vijesti</h2>
        <ul class="navcontrol nopadding">
            <li>  
                <a class="side-left link-refresh toggle-item closed open-poll" href="javascript:void(0)" id="<?=$id;?>" <? if($status==1)echo ' style="display: none;"';?>>Otvori</a>
                <a class="side-left link-refresh toggle-item open close-poll" href="javascript:void(0)" id="<?=$id;?>" <? if($status==2)echo ' style="display: none;"';?>>Zatvori</a>
            </li>
            <li class="space">&nbsp;</li>
            <li><a class="link-delete delete-item side-right delete-poll" href="javascript:void(0)" id="<?=$id;?>">Obriši</a></li>
        </ul>
    </div>
    <div class="clear"></div> 
</div>
